home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / passwrd1.zip / PW.DOC < prev    next >
Text File  |  1987-10-25  |  8KB  |  234 lines

  1. DONATIONS:
  2. ---------
  3. This is Shareware software.  If you try this program, decide you like it
  4. then please support shareware and pay the requested registration fees.
  5.  
  6. You are expected to make copies of this program for distribution to your
  7. friends and associates.  You may not sell this software in ANY way!
  8.  
  9. The registration fee is $5.00, payable to me after you try this program
  10. and decide it deserves a place on your hard disk.  If you do this you
  11. will be known as an honest human being great and few among the
  12. multitudes of human kind!  So don't delay and do it today!  Send your
  13. $5.00 to..............
  14.  
  15.          MiCom Business Systems     Have MSC 4.0, MASM 4.0, QB 3.0,
  16.          David Scheall              Turbo Basic and C 1.0, Pascal 3.0,
  17.          6918 Alabama Avenue        DB III, Micro Focus COBOL Compilers.
  18.          Canoga Park, CA. 91303     Will Travel!  We speak LOTUS also!
  19.  
  20. Be sure to mention which MiCom product and version you are registering.
  21. If you dont pay the fee then drop me an Email line for suggestions
  22. on improvements and your comments.   C you all later! get it!? he he.
  23.  
  24. GEnie send mail to D.SCHEALL and on CompuServe to 71360,2662.
  25.  
  26. One more thing, I have a Question.  What is I/O?
  27.  
  28. The financial statement of a computer owner!  Get it? I owe??? yuk yuk.
  29.  
  30. Oh oh I can't stop....What is CORE Storage?
  31.  
  32. A place where they keep used Apples,  eg. Macintosh!
  33.  
  34.  
  35. DESCRIPTION:
  36. -----------
  37. PW.EXE is a program that will prompt a user for a password.  The user
  38. entered password will be validated against the password file specified
  39. in the execution command line.  PW.EXE disables the Control-C and the
  40. Control-Break key sequence.  A valid password must be entered or the
  41. program will not continue.
  42.  
  43. Password files are created using ANY word processor or editor that can
  44. produce files in text or ASCII format.   Passwords may be up to 18
  45. charcters and may contain special characters and numbers but not spaces.
  46. The program is NOT case sensitive, It will treat upper and lower case
  47. letters alike, ie. the letter 'a' and the letter 'A' is the same.
  48.  
  49. Password files may have any attribute and you may give them hidden or
  50. system attributes so they will be hidden from normal dir listings.
  51.  
  52. If PW.EXE is executed without a command line password file specification
  53. the program will terminate with a errorlevel of 1.
  54.  
  55.  
  56. USAGE:
  57. -----
  58.        PW drive:\path\password file name.ext
  59.  
  60. EXAMPLE:
  61.  
  62.        PW \DOS\PW.TXT
  63.  
  64. This command executes password and searches for a file in the \DOS
  65. directory of the current drive for the password validation file named
  66. PW.TXT.
  67.  
  68.        PW C:\123\PW.123
  69.  
  70. This command executes password and searches for a file in the C:\123
  71. directory for the password validation file named PW.123.
  72.  
  73.  
  74. TIPS:
  75. ----
  76. Password should be in a directory that is part of the PATH environment.
  77.  
  78. Password should always be executed from a batch file.  This will provide
  79. the most security for your system.   The most obvious place to start is
  80. with the AUTOEXEC.BAT file.
  81.  
  82.  
  83. TIPS  CONFIG.SYS:
  84. ----------------
  85. If you are not using DOS 3.2 or newer skip this paragraph.  If you're a
  86. 3.2 or 3.3 user then start with your config.sys file.  Mine looks like
  87. this:    ----------------------------------------------------------+
  88.                                                                    |
  89.           device=remm.sys                                          |
  90.           device=rex.sys 528                                       |
  91.           device=fastdisk.sys /extm                                |
  92.           files=20                                                 |
  93.           buffers=20                                               |
  94.           lastdrive=z                                              |
  95.           SHELL=C:\COMMAND.COM /P     <------ This is the statement+
  96.  
  97. Let me draw your attention to the SHELL=C:\COMMAND.COM /P statement.
  98.  
  99. Purpose:  Replaces the normal command interpreter (COMMAND.COM) with a
  100.           different program.
  101.  
  102. Usage:    SHELL=[d:]filespec [parms]   (in the CONFIG.SYS file)
  103.  
  104. Remarks:  As the last step in the boot sequence, DOS loads and executes
  105.           high-level command interpreter (COMMAND.COM) which displays
  106.           DOS prompt and handles user input.   If you use the SHELL =
  107.           command, you can install a different command interpreter.
  108.  
  109. Examples: SHELL=COMMAND.COM /E:1000 /P
  110.           (DOS 3.2+) loads the DOS command interpreter with 1000 bytes of
  111.           environment space (/E) and
  112.           forces execution of AUTOEXEC.BAT (/P)
  113.  
  114.           SHELL=menushel.com replaces COMMAND.COM with a comercial
  115.           program name MENUSHEL.COM.
  116.  
  117. So as you see all I do is force the execution on the AUTOEXEC.BAT file
  118. at system initialization.  Now comes the next step, AUTOEXEC.BAT.
  119.  
  120.  
  121. TIPS  AUTOEXEC.BAT:
  122. ------------------
  123.  
  124. For the following discussion, the bat file statements will be commented
  125. to the right as to the purpose for each statement.
  126.  
  127. Insert the folling statements as THE FIRST statements in your AUTOEXEC
  128. BAT files.
  129.  
  130. ECHO OFF                     Turn off listing of BAT statements as they
  131.                              are executing.
  132.  
  133. BREAK OFF                    Check for Ctrl-Break only during console I/O
  134.  
  135. PATH C:\DOS                  Establish Search path for programs and BAT
  136.                              file commands not in the current drive or
  137.                              directory.
  138.  
  139. PW \DOS\PW.PWD               Execute password and look for the password
  140.                              validation file in the \DOS directory of
  141.                              the current drive.
  142.  
  143. IF ERRORLEVEL 1 AUTOEXEC.BAT If password validation fails or the passwor
  144.                              validation file can not be found, then exe-
  145.                              cute AUTOEXEC.BAT.   Because of the /P
  146.                              option used in the SHELL statement of CONFIG
  147.                              SYS, AUTOEXEC.BAT MUST execute.
  148.  
  149. REST of AUTOEXEC statements
  150.  
  151. TYPE MENU.TXT                Type Hard Disk Menu. See Other uses.
  152.  
  153.  
  154. TIPS  OTHER USES:
  155. ----------------
  156.  
  157. If you use the N.BAT method for loading and executing programs then
  158. PW.EXE may be used to provide and additional level of security for
  159. the use of programs.  Consider the following.
  160.  
  161. The last statement of the AUTOEXEC.BAT file is instructions to type a
  162. file called MENU.TXT.  This file is normally a file that looks something
  163. like:
  164.  
  165.                    YOUR PERSONAL COMPUTER
  166.                    PROGRAM SELECTION MENU
  167.  
  168.     1.  Lotus Symphony                    2.  dBase 3+
  169.     etc.      etc.                        etc.        etc.
  170.  
  171.     Enter [L] followed by Program Number to exec that Program.
  172.  
  173.                |
  174.     C:> L 1 <--+
  175.  
  176. In our example the user wants to run Symphony and enters 'L 1' and hits
  177. the Enter key at the DOS command line.  This would cause DOS to load a
  178. file called L.BAT and pass a parameter of 1 to it.
  179.  
  180. Now if this file L.BAT looked like the following:
  181.  
  182. echo off
  183. PROMPT $p$  $d at $t$_$n$ = $
  184. C:
  185. CLS
  186. IF %1 == "" GOTO ERROR
  187. IF %1 == 1  GOTO SYM
  188. IF %1 == 2  GOTO DBAS4
  189.  
  190. GOTO ERROR
  191.  
  192. :DBAS4
  193. PATH D:\DB3;C:\DOS
  194. D:
  195. CD\DB3
  196. PW DB3.PWD        will load password and look in the DB3 directory
  197.                   for a password validation file named DB3.PWD.
  198.                   This could be a different password used at boot up.
  199. DBASE.EXE
  200. GOTO CONT
  201.  
  202. :SYM
  203. D:
  204. CLS
  205. CD\SYM
  206. ACCESS.COM
  207. GOTO CONT
  208.  
  209.  
  210. :ERROR
  211. echo You have made an invalid selection.  Try again
  212.  
  213. :CONT
  214. C:
  215. cd\
  216. exit
  217.  
  218. :EOJ
  219. CLS
  220. TYPE MENU.TXT
  221.  
  222. Well thats enough for now!  If you have problems implementing this
  223. program to it's fullest, call and you'll find the best customer support
  224. you have ever seen.
  225.  
  226. I use the batch file method described above to manage windows in a
  227. DESQview environment.  Password provides just a little more security
  228. for the programs and data I consider sensitive.
  229.  
  230. Well take care, use this program in good health, and have a nice day!
  231.  
  232. David Scheall
  233. October 1987
  234.